/*******************************************************************************
* Project: QSAR(Cute Software Architecture) 
*
* Copyright: Copyright(C) 2024 by YuetingBen, All Rights Reserved
*
* File name: DcmDspSvc27.c
*
* Brief: ;
*
* Author: Yueting.Ben
*
* Module: Dcm
*
* Revision:
* ------------------------------------------------------------------------------
* v0.1: 
* --Yueting.Ben, 2024-03-22 
* --Initial release

*******************************************************************************/

/** HEADER FILES **/
#include "DcmDspSvc27Cfg.h"
#include "DcmDslCfg.h"


/** MACRO DEFINITION **/


/** TYPEDEF DEFINITION **/


/** LOCAL DATA DECLARATION **/
const DcmDspSecurityRowType DcmDspSecurityLocked;
const DcmDspSecurityRowType DcmDspSecurityLev1;

const DcmDspSecurityRowType* DcmDspSecurityCfg[DCM_SEC_LEV_MAX];


/** LOCAL DATA **/
const DcmDspSecurityRowType DcmDspSecurityLocked = 
{
    DCM_SEC_LEV_LOCKED, /* DcmDspSecurityLevel */
    0u, /* DcmDspSecurityNumAttDelay */
    0u, /* DcmDspSecurityDelayTime */
    4u, /* DcmDspSecuritySeedSize */
    4u, /* DcmDspSecurityKeySize */
    0u, /* DcmDspSecurityADRSize */
    0u, /* DcmDspSecurityAttemptCounterEnabled */
    0u, /* DcmDspSecurityDelayTimeOnBoot */
    DCM_NULL_PROCESSOR, /* DcmDspSecurityGetAttemptCounterFnc */
    DCM_NULL_PROCESSOR, /* DcmDspSecuritySetAttemptCounterFnc */
    DCM_NULL_PROCESSOR, /* DcmDspSecurityGetSeedFnc */
    DCM_NULL_PROCESSOR /* DcmDspSecurityCompareKeyFnc */
};

const DcmDspSecurityRowType DcmDspSecurityLev1 = 
{
    DCM_SEC_LEV_1_UNLOCKED, /* DcmDspSecurityLevel */
    3u, /* DcmDspSecurityNumAttDelay */
    10000u, /* DcmDspSecurityDelayTime, unit ms */
    4u, /* DcmDspSecuritySeedSize */
    4u, /* DcmDspSecurityKeySize */
    0u, /* DcmDspSecurityADRSize */
    SET, /* DcmDspSecurityAttemptCounterEnabled */
    0u, /* DcmDspSecurityDelayTimeOnBoot */
    DCM_NULL_PROCESSOR, /* DcmDspSecurityGetAttemptCounterFnc */
    DCM_NULL_PROCESSOR, /* DcmDspSecuritySetAttemptCounterFnc */
    AppDiag_Security_Level1_GetSeed, /* DcmDspSecurityGetSeedFnc */
    AppDiag_Security_Level1_CompareKey /* DcmDspSecurityCompareKeyFnc */
};


const DcmDspSecurityRowType* DcmDspSecurityCfg[DCM_SEC_LEV_MAX] = 
{   
    (DcmDspSecurityRowType*)&DcmDspSecurityLev1,
    (DcmDspSecurityRowType*)&DcmDspSecurityLev1,
    (DcmDspSecurityRowType*)&DcmDspSecurityLev1
};
